#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
//#include <sys/types.h>
#include <string.h>

extern char** environ;

int main(int argc,char* argv[],char* env[])
{
	(void*)argc;
	(void*)argv;
	(void*)env;

	char* who = getenv("MYNAME");
	if (strcmp(who,"rich"))
	{	
		char* value = getenv("MYNAME");
		printf("MYNAME->%s\n",value);

		//for (int i=0;env[i];i++)
		//	printf("env[%d]->%s\n",i,env[i]);
	
		for (int i=0;environ[i];i++)
			printf("environ[%d]->%s\n",i,environ[i]);
		
		return 0;
	}
	else
	{
		printf("no");
		return 1;
	}
}
